﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.Entity.User
{
    /// <summary>
    /// 用户信息表
    /// </summary>
    [Table("UserInfo")]
    public class UserInfo:AuditField<int>
    {
        /// <summary>
        /// 昵称/用户名
        /// </summary>
        public string? NickName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string? Password { get; set; }
        /// <summary>
        /// 登录名
        /// </summary>
        public string? LoginName { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string? Icon { get; set; }
        /// <summary>
        /// 部门ID
        /// </summary>
        public int? DepartmentId { get; set; }
        /// <summary>
        /// 手机号码
        /// </summary>
        public string? Phone { get; set; }
        /// <summary>
        /// 电子邮箱
        /// </summary>
        public string? Email { get; set; }
        /// <summary>
        /// 状态，状态为0表示正常，1表示禁用
        /// </summary>
        public int? Status { get; set; } = 0;
        /// <summary>
        /// 连续登录失败次数
        /// </summary>
        public int? FailCount { get; set; } = 0;
        /// <summary>
        /// 锁定时间
        /// </summary>
        public DateTime? LockLoginTime { get; set; } = DateTime.MinValue;
    }
}
